<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://meerkat.qunar.com/web" prefix="web" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<web:designCss/>
<%@include file="/WEB-INF/include/head.jsp" %>
<style type="text/css">
  .content td { height:25px;}
</style>
</head>
<body>
    <div class="wrapper">
        <web:titleBar title="投诉详情" />

        <div class="main content">
            <table>
                <tr>
                    <td>被投诉报名序号</td>
                    <td><input type="text" disabled="disabled" value="${item.inviteCode}" /></td>
                </tr>
                <tr>
                    <td>被投诉人</td>
                    <td><input type="text" disabled="disabled" value="${item.username}" /></td>
                </tr>
                <tr>
                    <td>投诉人</td>
                    <td><input type="text" disabled="disabled" value="${item.name}" /></td>
                </tr>
                <tr>
                    <td>投诉人电话</td>
                    <td><input type="text" disabled="disabled" value="${item.mobile}" /></td>
                </tr>
                <tr>
                    <td>投诉内容</td>
                    <td><textarea cols="40" rows="10"  disabled="disabled" >${item.content}</textarea></td>
                </tr>
                <tr>
                    <td>投诉状态</td>
                    <td><web:writeCodeValue codeList="reportStatusLoader" name="item" property="status" /></td>
                </tr>
                <tr>
                    <td>创建时间</td>
                    <td><web:date name="item" property="created" pattern="yyyy年MM月dd日 HH:mm:ss" /></td>
                </tr>
                <tr>
                    <td>更新时间</td>
                    <td><web:date name="item" property="updated" pattern="yyyy年MM月dd日 HH:mm:ss" /></td>
                </tr>
                <tr>
                    <td colspan="5">
                        <a href="list.htm" class="button button-green">返回</a>
                        <c:if test="${item.status==0}">
                            <web:ifAuthorized path="${PATH}report/accept">
                            <a href="accept.htm?id=${item.id}&forward=/report/detail.htm?id=${item.id}" class="button button-blue">处理</a>
                            </web:ifAuthorized>
                        </c:if>
                        <c:if test="${item.status!=2}">
                            <web:ifAuthorized path="${PATH}report/delete">
                            <a href="delete.htm?id=${item.id}&forward=/report/detail.htm?id=${item.id}" class="button button-red">删除</a>
                            </web:ifAuthorized>
                        </c:if>
                    </td>
                </tr>
            </table>
        </div>
    </div>
    <script type="text/javascript">
    $(document).ready(function(){
        $(".content input").prop("disabled", "disabled");
        $(".content textarea").prop("disabled", "disabled");
    });
    </script>
</body>
</html>